﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="../images/favicon.ico">
<!-- 本框架基本脚本和样式 -->
<script type="text/javascript"
	src="${path }/resource/js/jquery-2.1.4.min.js"></script>
<link
	href=" ${path }/resource/plugin/bootstrap-3.3.5/css/bootstrap.min.css"
	rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="${path }/resource/css/index.min.css" />
<style type="text/css">
#appBox {
	background: #fff;
	border-radius: 5px;
	 padding-bottom:30px;
	width: 100%;
}

.app {
	margin-top: 20px;
}
</style>
<title>GeeK开发者中心</title>
</head>
<body>
	<%@ include file="top.jsp"%>
	<div class="container" style="margin-top: 100px">
		<div class="panel panel-success">
			<div class="panel-heading">
				<h3 class="panel-title">常用应用</h3>
			</div>
			<div class="panel-body" id="appBox"></div>
		</div>
		
		<div class="panel panel-info">
			<div class="panel-heading">
				<h3 class="panel-title">常用网址</h3>
			</div>
			<div class="panel-body" id="appBox2"></div>
		</div>
		
		
	</div>
</body>
<script type="text/javascript"
	src="${path }/resource/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
	src="${path}/resource/plugin/layer/layer.js"></script>
<script type="text/javascript"
	src="${path}/resource/js/systools/AjaxProxy.js"></script>
<script type="text/javascript">
	$(".index-nav").addClass("nav-hover");

	$
			.AjaxProxy({
				p : {
					'columnName' : '常用应用'
				}
			})
			.invoke(
					"${path}/adPositionInterface/adPosition",
					function(loj) {
						var html = '';
						for (var i = 0; i < loj.getRowCount(); i++) {
							html += '<div class="app col-sm-2 "  ><a class="btn btn-success " href="'
									+ loj.getString(i, 'url')
									+ '" target="blank">'
									+ loj.getString(i, 'message')
									+ '</a></div>'
						}
						$("#appBox").append(html);

					});
	
	$
	.AjaxProxy({
		p : {
			'columnName' : '常用网址'
		}
	})
	.invoke(
			"${path}/adPositionInterface/adPosition",
			function(loj) {
				var html = '';
				for (var i = 0; i < loj.getRowCount(); i++) {
					html += '<div class="app col-sm-2 "  ><a class="btn btn-info " href="'
							+ loj.getString(i, 'url')
							+ '" target="blank">'
							+ loj.getString(i, 'message')
							+ '</a></div>'
				}
				$("#appBox2").append(html);
			});
</script>
</html>